home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
turbovis
/
ptg120co.zip
/
PTG_REF.DOC
< prev
next >
Wrap
Text File
|
1993-11-06
|
46KB
|
1,771 lines
▀▀▀▀▀ ▀ ▀▀▀▀▀
▀▀ ▀▀ ▀▄ ▀▀ ▀▀ ▀ ▀
▀▀▀▀▀▀ ▄▀ ▀▀▀ ▀▀▀▀ ▀▄▄▀ ▀ ▀ ▀
▀▀ ▀ ▀▀ ▀▀ ▀ ▀ ▀▀ 1.20
▀▀ ▀▀ ▀▀▀▀▀ ▀▀ ▀ ▀
(c) Copyright 1991, 1993 by Nederware, a dutch software company
Reference Guide
written by Berend de Boer
PtGen reference manual - page 1
TABLE OF CONTENTS
OBJECT APPLICATION . . . . . . . . . . . . . . . . . . . . . 1
Creating a new application . . . . . . . . . . . . . . . 1
Loading an application . . . . . . . . . . . . . . . . . 1
Application configuration . . . . . . . . . . . . . . . 1
Editing an application . . . . . . . . . . . . . . . . . 1
Saving an application . . . . . . . . . . . . . . . . . 2
OBJECT MENUBAR . . . . . . . . . . . . . . . . . . . . . . . 3
Creating a Line . . . . . . . . . . . . . . . . . . . . 3
Creating a Submenu . . . . . . . . . . . . . . . . . . . 3
Creating a Menu entry . . . . . . . . . . . . . . . . . 3
Editing menuitems . . . . . . . . . . . . . . . . . . . 3
Deleting menuitems . . . . . . . . . . . . . . . . . . . 3
Creating Links . . . . . . . . . . . . . . . . . . . . . 4
Deleting Links . . . . . . . . . . . . . . . . . . . . . 4
OBJECT STATUSLINE . . . . . . . . . . . . . . . . . . . . . . 5
OBJECT DESKTOP . . . . . . . . . . . . . . . . . . . . . . . 6
Desktop Local Menu . . . . . . . . . . . . . . . . . . . 6
COMMANDS . . . . . . . . . . . . . . . . . . . . . . . . . . 7
HELPTEXTS . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Helpconstants . . . . . . . . . . . . . . . . . . . . . 8
Statusline helptext . . . . . . . . . . . . . . . . . . 8
HelpWindow text . . . . . . . . . . . . . . . . . . . . 8
Help dialog box . . . . . . . . . . . . . . . . . . . . 9
OBJECTS DIALOG BOX . . . . . . . . . . . . . . . . . . . . . 10
Creating objects . . . . . . . . . . . . . . . . . . . . 10
Editing objects . . . . . . . . . . . . . . . . . . . . 10
Deleting objects . . . . . . . . . . . . . . . . . . . . 10
Cloning objects . . . . . . . . . . . . . . . . . . . . 10
OBJECT DIALOG BOX . . . . . . . . . . . . . . . . . . . . . . 11
The Dialog Local Menu . . . . . . . . . . . . . . . . . 11
Dialog settings . . . . . . . . . . . . . . . . . . . . 11
The Dialog subviews . . . . . . . . . . . . . . . . . . 11
Button . . . . . . . . . . . . . . . . . . . . . . 12
Static text . . . . . . . . . . . . . . . . . . . . 12
Label . . . . . . . . . . . . . . . . . . . . . . . 12
Inputline . . . . . . . . . . . . . . . . . . . . . 12
Memo . . . . . . . . . . . . . . . . . . . . . . . 13
Checkboxes . . . . . . . . . . . . . . . . . . . . 13
Radiobuttons . . . . . . . . . . . . . . . . . . . 13
Spinbuttons . . . . . . . . . . . . . . . . . . . . 13
ListViewer . . . . . . . . . . . . . . . . . . . . 13
PtGen reference manual - page i
Moving and Resizing subviews . . . . . . . . . . . . . . 14
Changing the Tab-order of the subviews . . . . . . . . . 14
Creating a record . . . . . . . . . . . . . . . . . . . 14
Code button . . . . . . . . . . . . . . . . . . . . . . 15
OBJECT POPUP . . . . . . . . . . . . . . . . . . . . . . . . 16
UNIT BBDLG . . . . . . . . . . . . . . . . . . . . . . . . . 17
UNIT BBERROR . . . . . . . . . . . . . . . . . . . . . . . . 18
UNIT BBFILE . . . . . . . . . . . . . . . . . . . . . . . . . 19
UNIT BBSTRRES . . . . . . . . . . . . . . . . . . . . . . . . 21
UNIT BBUTIL . . . . . . . . . . . . . . . . . . . . . . . . . 22
UNIT BBVALIDATE . . . . . . . . . . . . . . . . . . . . . . . 24
PTGEN TECHNICAL INFORMATION . . . . . . . . . . . . . . . . . 25
ERROR CODES . . . . . . . . . . . . . . . . . . . . . . . . . 26
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
PtGen reference manual - page ii
OBJECT APPLICATION
PtGen is application oriented, that it: it assumes that you
develop complete applications with PtGen. Although it is possible
just to use the dialog box editing features alone, you won't take
full advantage of PtGen. This chapter discusses the application
object you create.
Creating a new application
If you want to create a new application, select File|New from the
menubar. The application configuration dialog box pops up. See
the section about Application configuration for further details.
Next you can edit your application.
Loading an application
Select File|Open to load a previous saved application. From the
File dialog box choose the file with the application you want to
load.
Application configuration
For every application you have to specify:
1. its name. PtGen will automatically prefix the name (and any
name) with a 'T'
2. the language to use: English or Dutch.
3. If it uses a helpfile and if yes, the name of the ascii
version of that helpfile. Do not specify the TVHC compiled
file, with extension .HLP, but the text file, usually .TXT.
4. If it uses the editor. If yes, than the commands from
EDITORS.PAS are added to the standard available commands
which can be used when creating menus. Added are:
cmNew
cmOpen
cmSave
cmSaveAs
cmPrint
5. If it uses the background printing unit.
Editing an application
Press Edit (Ctrl-F8) or select Edit from the menubar to edit your
application. You can now edit the menubar (see chapter Object
MenuBar) and statusline (see chapter Object Statusline) and
create various objects (see chapter Creating Objects).
After you have edited an application, pressing Alt-X brings you
PtGen reference manual - page 1
back in PtGen. You can now save your application, see chapter
Saving an application.
Saving an application
Select File|Save or File|Save as to save your application. If you
don't specify an extension, .PAS will be added.
PtGen reference manual - page 2
OBJECT MENUBAR
PtGen allows you to quickly define menuitems. The parameters you
can give to a menuitem are the same as the TMenuItem type, which
is described in the Turbo Vision manual plus some more. The
following sections describe the various menuitems you can create.
See the section Creating